<?php
date_default_timezone_set( "PRC" );
$currTime = date( 'H' );
if (5 < $currTime && $currTime < 10) {
    $hint = "早上好";
} else if (10 < $currTime && $currTime < 14) {
    $hint = "中午好";
} else if (14 < $currTime && $currTime < 18) {
    $hint = "下午好";
} else if (18 < $currTime && $currTime < 21) {
    $hint = "晚上好";
} else {
    $hint = "休息时间";
}
$time = date( 'Y-m-d h:m:s' ) . $hint;
echo $time;